//
//  YDCarTypeCell.m
//  YDTestDrive
//
//  Created by ios on 2017/2/16.
//  Copyright © 2017年 ios. All rights reserved.
//

#import "YDCarTypeCell.h"
#import "YDCarTypeModel.h"

#import "UIImageView+WebCache.h"

@interface YDCarTypeCell ()
@property (weak, nonatomic) IBOutlet UIImageView *carImageView;
@property (weak, nonatomic) IBOutlet UILabel *carNameLabel;

@end
@implementation YDCarTypeCell

- (void)setCarTypeModel:(YDCarTypeModel *)carTypeModel
{
    _carTypeModel = carTypeModel;
    
    [self.carImageView sd_setImageWithURL:[NSURL URLWithString:carTypeModel.logoPath] placeholderImage:[UIImage imageNamed:@"default_car"]];
    
    self.carNameLabel.text = carTypeModel.cartypeName;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
